﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsRemoteScripting.Action
{
    public class TopMost : AbstractCommand
    {
        public override void Run(object sender, EventArgs e)
        {
            SwitchTopMost();
        }

        private static void SwitchTopMost()
        {
            Form1.m_Form.topmostToolStripMenuItem.Checked = !Form1.m_Form.topmostToolStripMenuItem.Checked;
            Form1.m_Form.TopMost = Form1.m_Form.topmostToolStripMenuItem.Checked;
        }
    }
}
